import Vue from 'vue'
import Router from 'vue-router'
var Index = require('@/pages/Index/Index').default
var Login = require('@/pages/Login/Login').default
var Test = require('@/pages/Test/Test').default

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/test',
      name: 'Test',
      component: Test
    },
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '*',
      redirect: '/'
    }
  ]
})
